<div class="detailsBox">
	<div class="detaiTab">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
				
					<tr>
					<!--
						<td align="right" class="bg">证件类型:</td>
						<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp"
							value="${basic.idType}" renderonly="true"/></td>
					-->
						<td align="right" class="bg">证件号码:</td>
						<td>${loanUser.documentNo}</td>
					</tr>
					<tr>
						<td align="right" class="bg">微信号:</td>
						<td>${basic.wechat}</td>
					</tr>
					<tr>
						<td align="right" class="bg">联系电话:</td>
						<td>${loanUser.userPhone}
							<input type="hidden" value="${loanUser.userPhone}" name="userPhone">
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">住宅电话:</td>
						<td>${basic.homePhone}</td>
					</tr>
					
					<tr>
						<td width="15%" align="right" class="bg">户籍地址:</td>
						<td colspan="3">
							<span id ="hjdz">
								<@select dataSouceType="province" value="${basic.accountProvince}" renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="city" value="${basic.accountCity}"  renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="COUNTY" value="${basic.accountAounty}"  renderonly="true"/>&nbsp;&nbsp;
	                    		${basic.permanentresidence}&nbsp;&nbsp;
	                    	</span>
	                    	<a href="javascript:void(0);" target="_blank" onclick="hjdzmap(this);">地图中查看</a>
						</td>
					</tr>
					
					<tr>
                        <td width="15%" align="right" class="bg">居住地址:</td>
                        <td colspan="3">
                        	<span id ="jzdz">
                        		<@select dataSouceType="province" value="${basic.recipientProvince}" renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="city" value="${basic.recipientCity}"  renderonly="true"/>&nbsp;&nbsp;
								<@select dataSouceType="COUNTY" value="${basic.recipientCounty}"  renderonly="true"/>&nbsp;&nbsp;
                    			${basic.recipientAddress}&nbsp;&nbsp;
                    		</span>
                    		<a href="javascript:void(0);" target="_blank" onclick="jzdzmap(this);">地图中查看</a>
						</td>
                    </tr>
					
				</tbody>
			</table>
</div>
</div>


 <@js>
	 var document_no = $('#document_no').text();
	 $('#age').text(getAge(document_no));
	 
	  function getAge(UUserCard){
		var myDate = new Date();
		var month = myDate.getMonth() + 1;
		var day = myDate.getDate();
		var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
		if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
			age++;
		}
		//alert(age);
		return age;
    }
    
    function hjdzmap(obj){
		var location = $('#hjdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
	function jzdzmap(obj){
		var location = $('#jzdz').html().replace(/[\r\n &nbsp;]/g,'');
		obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
	}
	
</@js>
<@jsRender/>